package task3_4new;

public class Main {
	public static void main(String[] args)
	{
		Policlinic pol1=new Policlinic(10,10);
		pol1.addDoctor(new Doctor("Doctor Mike First",10));
		pol1.addDoctor(new Doctor("Doctor Bruce Second",10));
		pol1.addDoctor(new Doctor("Doctor Walter Third",10));
		pol1.addPatient(new Patient("Patient Michael White"));
		pol1.addPatient(new Patient("Patient Steve Black"));
		pol1.addPatient(new Patient("Patient Richard Bee"));
		pol1.addPatient(new Patient("Patient Hank Blust"));
		pol1.showDoctors();
		pol1.showPatients();
		pol1.doctorsbase[1].recordtodoctor(pol1.patientsbase[1]);
		pol1.doctorsbase[2].recordtodoctor(pol1.patientsbase[2]);
		pol1.doctorsbase[2].recordtodoctor(pol1.patientsbase[3]);
		pol1.doctorsbase[0].recordtodoctor(pol1.patientsbase[3]);
		pol1.doctorsbase[2].showpatientrecords();
		System.out.println();
		pol1.doctorsbase[2].cancelrecordtodoctor(pol1.patientsbase[3]);
		pol1.doctorsbase[2].showpatientrecords();
	}

}
